€ 6.60

CMIS 102 Hands-On Lab Week 8 | Complete Solution latest update 2024/2025

CMIS 102 Hands-On Lab Week 8 | Complete Solution latest update 2024/2025

Pseudo-code:
Global variables:
 Constants using define declarations
o MAXN – the maximum number of characters in a band name
o MAXG – the maximum number of concerts/bands/groups
o MAXC – the maximum number of categories
 Arrays:
o char group [MAXG][MAXN]– the name of each group
o int fans [MAXG][MAXC]– the number of fans at a concert by category
o float prices [MAXC]– the ticket price of each category
o float sales [MAXG]– the total value of the tickets for each concert
 int count
o the actual number of active concerts/bands/groups
o this number is determined at run time in the getData function
o used throughout the rest of the program to only look at data in the
group, fans and salesarrays that is actually active.
Pseudo-Code:
1. main
a. getData – get ticket prices by category & get data for the concerts
b. computeSales – compute sales for each concert
c. printArray – print raw concert data
d. sortBySales – sort the concerts by value of sales, use selection sort
i. findMinSales – find min sales in unsorted rest of array
ii. switchRows – as needed
e. printArray – print sorted concert data
2. getData
a. prompt for ticket prices
b. get ticket prices into prices array
c. prompt for band name and fans in each category at each concert
d. insert data into appropriate arrays, ending with a period
i. loop on concert
1. get group name
2. loop inside on number of categories
3. computeSales
a. for each group
i. sales for that group = 0
Pseudo-code:
Global variables:
 Constants using define declarations
o MAXN – the maximum number of characters in a band name
o MAXG – the maximum number of concerts/bands/groups
o MAXC – the maximum number of categories
 Arrays:
o char group [MAXG][MAXN]– the name of each group
o int fans [MAXG][MAXC]– the number of fans at a concert by category
o float prices [MAXC]– the ticket price of each category
o float sales [MAXG]– the total value of the tickets for each concert
 int count
o the actual number of active concerts/bands/groups
o this number is determined at run time in the getData function
o used throughout the rest of the program to only look at data in the
group, fans and salesarrays that is actually active.
Pseudo-Code:
1. main
a. getData – get ticket prices by category & get data for the concerts
b. computeSales – compute sales for each concert
c. printArray – print raw concert data
d. sortBySales – sort the concerts by value of sales, use selection sort
i. findMinSales – find min sales in unsorted rest of array
ii. switchRows – as needed
e. printArray – print sorted concert data
2. getData
a. prompt for ticket prices
b. get ticket prices into prices array
c. prompt for band name and fans in each category at each concert
d. insert data into appropriate arrays, ending with a period
i. loop on concert
1. get group name
2. loop inside on number of categories
3. computeSales
a. for each group
i. sales for that group = 0

Preview document (3 van de 19 pagina's)

Unlock document

Download alle 19 pagina's voor € 6,60

Document in winkelwagen
Document rapporteren Document rapporteren

Voordelen van Knoowy

€ 6,60

Document in winkelwagen
  • check Niet tevreden? Geld terug
  • check Document direct te downloaden
  • check € 0,50 korting bij betalen met saldo
  • check Ontvang gratis oefenvragen bij document

Specificaties

Verkoper

Passionate Nurse

112 documenten geüpload

10 documenten verkocht


ALL DOCUMENTS ON THIS PAGE ARE ON OFFER FROM 05/08/2024-07/011/2024
NURSING EXAMS AND TEST BANKS. Contact us, https://www.docsity.com/en/users/profile/HESISOLUTIONS/
to fetch it for you in minutes if we do not have it in this shop .BUY WITHOUT DOUBT!!!!Always leave a review after purchasing any document so as to make sure our customers are 100% satisfied.

Verdienen aan je samenvattingen?

icon 2

Maak je zelf samenvattingen of heb je nog uitgewerkte opdrachten liggen? Upload je documenten dan op Knoowy en verdien geld.

Document uploaden

Al meer dan 146.000 tevreden studenten

  • esssrab
    esssrab

    Knoowy is een goede website. Het heeft veel aanbod en het werkt fijn.

  • Bianca
    Bianca

    Ik vind Knoowy de max! Door de hulp van andere studenten kan ik mijn examens makkelijker halen.

  • Steffix
    Steffix

    Knoowy neemt toch wel wat stress voor de examenperiode weg. De samenvattingen geven een goede houvast bij het studeren waardoor je zekerder wordt van jezelf bij het studeren. Ideaal voor wie in tijdsnood zit of gewoon een extra overzicht wil hebben van het vak.

  • Jen DM
    Jen DM

    Jullie website is top! Het heeft me al veel geholpen. Zeker omdat ik thuis studeer!

  • martinraasveld3105
    martinraasveld3105

    Prima database om studiemateriaal uit te halen, goed toegankelijk, eenvoudig zoeken.

  • Jill2005
    Jill2005

    De documenten zijn duidelijk en goed samengevat. Het is fijner leren dan vanuit het boek.

  • joannavoortman
    joannavoortman

    Een handige site voor het aankopen van samenvattingen voor examens.

  • RaniaF
    RaniaF

    Betrouwbaar platform om kwaliteitsvolle samenvattingen te vinden en een aangename en gemakkelijke website om te gebruiken

Inloggen via e-mail
Nieuw wachtwoord aanvragen
Registreren via e-mail
Winkelwagen
  • loader

Actie: ontvang 10% korting bij aankoop van 3 of meer items! Actie: ontvang 10% korting bij aankoop van 3 of meer items!

Actie: ontvang 10% korting bij aankoop van 3 of meer items!

loader

Ontvang gratis €2,50 bij je eerste upload

Help andere studenten door je eigen samenvattingen te uploaden op Knoowy. Upload ten minste één document en krijg gratis € 2,50 tegoed.

Upload je eerst document